<?php

#$json='[{"name":"active","data":[["Asia_Pacific_Singapore","43592"],["Asia_Pacific_Sydney","20299"],["Asia_Pacific_Tokyo","66909"],["EU_Ireland","148780"],["GovCloud","571"],["South_America_Sao_Paulo","18470"],["US_East_Northern_Virginia","586352"],["US_West_Northern_California","70255"],["US_West_Oregon","125355"]]},{"name":"inactive","data":[["Asia_Pacific_Singapore",204216],["Asia_Pacific_Sydney",176309],["Asia_Pacific_Tokyo",246435],["EU_Ireland",461524],["GovCloud",15813],["South_America_Sao_Paulo",161754],["US_East_Northern_Virginia",1502608],["US_West_Northern_California",257425],["US_West_Oregon",595541]]}]';
$type=$_GET["type"];

if($type==0)
{
$json='[{"name":"active","data":[["Asia_Pacific_Singapore",43592],["Asia_Pacific_Sydney",20299],["Asia_Pacific_Tokyo",66909],["EU_Ireland",148780],["GovCloud",571],["South_America_Sao_Paulo",18470],["US_East_Northern_Virginia",586352],["US_West_Northern_California",70255],["US_West_Oregon",125355]]},{"name":"inactive","data":[["Asia_Pacific_Singapore",204216],["Asia_Pacific_Sydney",176309],["Asia_Pacific_Tokyo",246435],["EU_Ireland",461524],["GovCloud",15813],["South_America_Sao_Paulo",161754],["US_East_Northern_Virginia",1502608],["US_West_Northern_California",257425],["US_West_Oregon",595541]]}]';
echo $json;
}
else{
	$json='[["22","Asia_Pacific_Singapore",10730],["443","Asia_Pacific_Singapore",1390],["80","Asia_Pacific_Singapore",20735],["80#443","Asia_Pacific_Singapore",10737],["22","Asia_Pacific_Sydney",4832],["443","Asia_Pacific_Sydney",921],["80","Asia_Pacific_Sydney",8328],["80#443","Asia_Pacific_Sydney",6218],["22","Asia_Pacific_Tokyo",12940],["443","Asia_Pacific_Tokyo",4273],["80","Asia_Pacific_Tokyo",31252],["80#443","Asia_Pacific_Tokyo",18444],["22","EU_Ireland",29372],["443","EU_Ireland",8425],["80","EU_Ireland",62983],["80#443","EU_Ireland",48000],["22","GovCloud",203],["443","GovCloud",53],["80","GovCloud",142],["80#443","GovCloud",173],["22","South_America_Sao_Paulo",4512],["443","South_America_Sao_Paulo",670],["80","South_America_Sao_Paulo",9475],["80#443","South_America_Sao_Paulo",3813],["22","US_East_Northern_Virginia",158752],["443","US_East_Northern_Virginia",24901],["80","US_East_Northern_Virginia",208634],["80#443","US_East_Northern_Virginia",194065],["22","US_West_Northern_California",20260],["443","US_West_Northern_California",4177],["80","US_West_Northern_California",23925],["80#443","US_West_Northern_California",21893],["22","US_West_Oregon",44573],["443","US_West_Oregon",6356],["80","US_West_Oregon",50941],["80#443","US_West_Oregon",23485]]';
	echo $json;
}

%query='select table_name from information_schema.tables where table_schema="scan" and table_name like "scanner_%"';
?>